import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import { http, axios, fileHttp, http_json,http_get } from './assets/js/request.js'
import './assets/js/common.js'
import './assets/css/common.css'
import api from './assets/js/api'
import * as filters from './assets/js/filter' 

Vue.config.productionTip = false

Vue.prototype.$http = http;
Vue.prototype.$http_get =http_get;
Vue.prototype.$axios = axios;
Vue.prototype.$fileHttp = fileHttp;
Vue.prototype.$http_json  = http_json;
Vue.prototype.$api  = api;

// register global utility filters.
Object.keys(filters).forEach(key => {
    Vue.filter(key, filters[key])
});

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
